﻿/*
 * Last review by   : Yaser
 * Last review date : JUL-25-09 
 * TODO: implement functions
 * TODO: use tracing util
 */
using System;
using ERP.Framework.Components.Utilities.TracingHelper;

namespace ERP.Business.Users.Permissions
{
    public sealed class UserRolesManager
    {
        /*
        private const string TRACING_CATEGORY = "ERP.Business.UserManagers.Permissions.UserRolesManager";

        /// <summary>
        /// Assign user to new Roles.
        ///<remarks>If user already assigned to the Role it will be ignored.</remarks>
        /// </summary>
        /// <param name="user">user</param>
        /// <param name="roles">new roles</param>
        /// <returns>adding result</returns>
        public static bool AssignUserRoles(ERP.Business.DataTypes.Users.User user, ERP.Business.DataTypes.Users.Credentials.RolesCollection roles)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// Create new Role to the user
        /// </summary>
        ///<remarks>If user already assigned to the Role it will be ignored.</remarks>
        /// <param name="user">user</param>
        /// <param name="role">role</param>
        /// <returns>adding result</returns>
        public static bool AddUserRole(ERP.Business.DataTypes.Users.User user, ERP.Business.DataTypes.Users.Credentials.Role role)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// Remove role from user's roles
        /// </summary>
        /// <param name="user">user</param>
        /// <param name="role">role</param>
        /// <returns>removing result</returns>
        public static bool RemoveUserRole(ERP.Business.DataTypes.Users.User user, ERP.Business.DataTypes.Users.Credentials.Role role)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// Remove set of roles from user's roles
        /// </summary>
        /// <param name="user">user</param>
        /// <param name="roles">roles</param>
        /// <returns>removing result</returns>
        public static bool RemoveUserRoles(ERP.Business.DataTypes.Users.User user, ERP.Business.DataTypes.Users.Credentials.RolesCollection roles)
        {
            throw new System.NotImplementedException();
        }
        */
    }
}